package insultGen.systemFiles;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class RemoveInsult extends Activity{

	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.removewords);
        
        final EditText Editer = (EditText) findViewById(R.id.remove_text);
        
        Button back = (Button) findViewById(R.id.remove_back);
        back.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				finish();
			}
		});
        Button add = (Button) findViewById(R.id.remove_remove_button);
        add.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				
				pendRemove(Editer.getText().toString());
				
				finish();
			}
		});
	}
	
	public void pendRemove(String insult){
		Options.addRemovePending(insult);
	}
}
